import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as mutations from './mutations';
import * as getters from './getters';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    isLoading: false, // 是否展示loading动画
    orderBy: 'sale', // 根据什么字段排序
    setMeal: [
      {
        img: 'static/img/goodsDetail/pack/1.jpg',
        intro: '《粉色》普通 —博士',
        price: 28.0,
        kc: 100,
        ys: 132
      },
      {
        img: 'static/img/goodsDetail/pack/2.jpg',
        intro: '《灰色》普通 —博士',
        price: 29.0,
        kc: 216,
        ys: 322
      },
      {
        img: 'static/img/goodsDetail/pack/3.jpg',
        intro: '《黄色》普通 —硕士',
        price: 28.5,
        kc: 131,
        ys: 445
      },
      {
        img: 'static/img/goodsDetail/pack/4.jpg',
        intro: '《白色》普通 —硕士',
        price: 32.0,
        kc: 253,
        ys: 112
      },
      {
        img: 'static/img/goodsDetail/pack/5.jpg',
        intro: '《绿色》普通 —博士',
        price: 32.0,
        kc: 516,
        ys: 112
      },
      {
        img: 'static/img/goodsDetail/pack/6.jpg',
        intro: '《红色》普通 —硕士',
        price: 35.0,
        kc: 156,
        ys: 122
      },
      {
        img: 'static/img/goodsDetail/pack/7.jpg',
        intro: '《粉色》高端 —博士',
        price: 26.0,
        kc: 371,
        ys: 144
      },
      {
        img: 'static/img/goodsDetail/pack/8.jpg',
        intro: '《灰色》高端 —博士',
        price: 25.0,
        kc: 476,
        ys: 258
      },
      {
        img: 'static/img/goodsDetail/pack/9.jpg',
        intro: '《白色》高端 —硕士',
        price: 28.0,
        kc: 785,
        ys: 556
      }

    ],
    goodsInfo: { // 商品详情
      goodsImg: [
        'static/img/goodsDetail/item-detail-1.jpg',
        'static/img/goodsDetail/item-detail-2.jpg',
        'static/img/goodsDetail/item-detail-3.jpg',
        'static/img/goodsDetail/item-detail-4.jpg'
      ],
      goodsize: ['S', 'M', 'L', 'XL'],
      title: '学位学士服理科礼服毕业披肩硕服文工科导师袍服装工学高端军科',
      tags: ['满69-20元', '关注产品★送钢化膜', 'BIT配次日达'],
      discount: ['满148减10', '满218减20', '满288减30'],
      promotion: ['跨店满减', '多买优惠'],
      remarksNum: 6000,
      setMeal: [
        {
          img: 'static/img/goodsDetail/pack/1.jpg',
          intro: '《粉色》普通 —博士',
          price: 28.0,
          kc: 526,
          ys: 132
        },
        {
          img: 'static/img/goodsDetail/pack/2.jpg',
          intro: '《灰色》普通 —博士',
          price: 29.0,
          kc: 216,
          ys: 322
        },
        {
          img: 'static/img/goodsDetail/pack/3.jpg',
          intro: '《黄色》普通 —硕士',
          price: 28.5,
          kc: 131,
          ys: 445
        },
        {
          img: 'static/img/goodsDetail/pack/4.jpg',
          intro: '《白色》普通 —硕士',
          price: 32.0,
          kc: 253,
          ys: 112
        },
        {
          img: 'static/img/goodsDetail/pack/5.jpg',
          intro: '《绿色》普通 —博士',
          price: 32.0,
          kc: 516,
          ys: 112
        },
        {
          img: 'static/img/goodsDetail/pack/6.jpg',
          intro: '《红色》普通 —硕士',
          price: 35.0,
          kc: 156,
          ys: 122
        },
        {
          img: 'static/img/goodsDetail/pack/7.jpg',
          intro: '《粉色》高端 —博士',
          price: 26.0,
          kc: 371,
          ys: 144
        },
        {
          img: 'static/img/goodsDetail/pack/8.jpg',
          intro: '《灰色》高端 —博士',
          price: 25.0,
          kc: 476,
          ys: 258
        },
        {
          img: 'static/img/goodsDetail/pack/9.jpg',
          intro: '《白色》高端 —硕士',
          price: 28.0,
          kc: 785,
          ys: 556
        }

      ],
      hot: [
        {
          img: 'static/img/goodsDetail/hot/1.jpg',
          price: 28.0,
          sale: 165076
        },
        {
          img: 'static/img/goodsDetail/hot/2.jpg',
          price: 36.0,
          sale: 135078
        },
        {
          img: 'static/img/goodsDetail/hot/3.jpg',
          price: 38.0,
          sale: 105073
        },
        {
          img: 'static/img/goodsDetail/hot/4.jpg',
          price: 39.0,
          sale: 95079
        },
        {
          img: 'static/img/goodsDetail/hot/5.jpg',
          price: 25.0,
          sale: 5077
        },
        {
          img: 'static/img/goodsDetail/hot/6.jpg',
          price: 20.0,
          sale: 3077
        }
      ],
      goodsDetail: [
        'static/img/goodsDetail/intro/1.jpg'
      ],
      param: [
        {
          title: '适用年龄:',
          content: ' 18-25周岁'
        },
        {
          title: '尺码',
          content: ' S M L XL'
        },
        {
          title: '店铺',
          content: 'Fiora Shop'
        },
        {
          title: '风格',
          content: '其他'
        },
        {
          title: '颜色分类',
          content: '《粉色》普通...'
        },
        {
          title: '货号',
          content: '030'
        },
        {
          title: '成分含量',
          content: '96%以上'
        },
        {
          title: '年份季节',
          content: '春夏'
        },
        {
          title: '适用人群',
          content: '通用'
        }, {
          title: '袖长:',
          content: '长袖'
        }
      ],
      remarks: {
        goodAnalyse: 90,
        remarksTags: [ '颜色可人', '实惠优选', '严丝合缝', '极致轻薄', '质量没话说', '比定做还合适', '完美品质', '正品行货', '包装有档次', '不容易发热', '已经买第二个', '是全覆盖' ],
        remarksNumDetail: [ 2000, 3000, 900, 1 ],
        detail: [
          {
            username: 'pladj1',
            values: 3,
            content: '很好，价格又实惠，非常的满意',
            goods: '《灰色》高端 —博士',
            create_at: '2018-05-15 09:20',
            size: 'L'
          },
          {
            username: '13544521781',
            values: 5,
            content: '不错，很喜欢,很满意。物流很快。很愉快的一次购物！',
            goods: '《粉色》高端 —博士',
            create_at: '2018-05-13 15:23',
            size: 'xL'
          },
          {
            username: '323asdz',
            values: 4.5,
            content: '此用户没有填写评价。',
            goods: '《粉色》普通 —博士',
            create_at: '2018-05-05 12:25',
            size: 'M'
          },
          {
            username: 'gddwwwc',
            values: 3.5,
            content: '宝贝们的状态不错，我买了S, M, L, XL 尺码每个一套，有纸板帽和红色的披巾套。 谢谢卖家的服务！！！',
            goods: '《黄色》普通 —硕士',
            create_at: '2018-04-06 16:23',
            size: 'L'
          },
          {
            username: 'rfrejasjb',
            values: 4.5,
            content: '不错哦不错哦不错哦不错哦不错哦今天毕业 希望自己能一帆风顺',
            goods: '《绿色》普通 —博士',
            create_at: '2018-03-15 19:24',
            size: 'XL'
          },
          {
            username: '17683554515',
            values: 5,
            content: '大家完全放心购买。和学校借给你的几乎一模一样。十几块买下来可是好好拍毕业照，学校外面租还要百来块。简直不要太划算。质量完全不用担心。',
            goods: '《粉色》高端 —博士',
            create_at: '2018-03-10 10:13',
            size: 'S'
          }
        ]
      }
    },
    userInfo: {
      username: '',
      password: '',
      mail: '',
      phone: '',
      atrr: ''
    },
    useratrr: '',
    userList: [{
      username: 'admin',
      password: '123456',
      mail: 'admin@163.com',
      phone: '17683240225',
      atrr: 'static/img/atrr/3.png'
    },
    {
      username: 'ekko',
      password: '123456',
      mail: '11112@163.com',
      phone: '17683240225',
      atrr: 'static/img/atrr/2.png'
    },
    {
      username: 'rievn',
      password: '123456',
      mail: '4545@163.com',
      phone: '19999999999',
      atrr: 'static/img/atrr/4.png'
    },
    {
      username: 'jesi',
      password: '123456',
      mail: '665656@163.com',
      phone: '13567584851',
      atrr: 'static/img/atrr/5.png'
    },
    {
      username: 'haha',
      password: '123456',
      mail: '11165612@163.com',
      phone: '15555555555',
      atrr: 'static/img/atrr/5.png'
    },
    {
      username: 'destiny',
      password: '123456',
      mail: '1177712@163.com',
      phone: '16666666666',
      atrr: 'static/img/atrr/5.png'
    },
    {
      username: 'levio',
      password: '123456',
      mail: '1777999112@163.com',
      phone: '14545454544',
      atrr: 'static/img/atrr/5.png'
    },
    {
      username: 'jacksow',
      password: '123456',
      mail: '8888@163.com',
      phone: '13333333333',
      atrr: 'static/img/atrr/5.png'
    },
    {
      username: 'gosht',
      password: '123456',
      mail: '9999@163.com',
      phone: '17545666625',
      atrr: 'static/img/atrr/5.png'
    }

    ],
    signUpStep: 0, // 登陆步骤
    marketing: { // 营销
      CarouselItems: [], // 轮播图
      activity: [] // 活动
    },
    seckills: { // 秒杀
      deadline: {
        hours: 1,
        minute: 38,
        seconds: 36
      },
      goodsList: [
        {
          intro: '学位服结业服演出服学士服毕业服大学生毕业礼服',
          img: 'static/img/index/seckill/seckill-item1.jpg',
          price: '72',
          realPrice: 89
        },
        {
          intro: '导师服学士服学位服硕士服博士服院长服定制 ',
          img: 'static/img/index/seckill/seckill-item2.jpg',
          price: 98,
          realPrice: 129
        },
        {
          intro: '溥畔 @学位学士服毕业礼服大学生男女学院风',
          img: 'static/img/index/seckill/seckill-item3.jpg',
          price: 21,
          realPrice: 49
        },
        {
          intro: '早秋新款学士服大学生学位毕业穿的典礼衣服',
          img: 'static/img/index/seckill/seckill-item4.jpg',
          price: 49,
          realPrice: 59
        },
        {
          intro: '毕业学士服 礼服 一件定制刺绣校徽学位服 ',
          img: 'static/img/index/seckill/seckill-item5.jpg',
          price: 55,
          realPrice: 75
        }
      ]
    },
    computer: {}, // 电脑专栏
    eat: {}, // 爱吃专栏
    asItems: [], // 广告
    goodsList: [], // 商品列表
    shoppingCart: [], // 购物车
    newShoppingCart: [], // 刚加入的购物车，作为展示
    recommend: [], // 推荐购买
    BeforeorderList: [], // 订单列表
    orderList: [], // 订单列表
    address: [
      {
        addressId: '123456',
        name: 'Fiora',
        province: '广东省',
        city: '广州市',
        area: '天河区',
        address: '燕岭路633号',
        phone: '152****0609',
        postalcode: '510000'
      },
      {
        addressId: '123458',
        name: 'Kevin',
        province: '上海市',
        city: '上海市',
        area: '浦东新区',
        address: '沙新镇',
        phone: '158****0888',
        postalcode: '200120'
      }
    ], // 收货地址
    userOrder: [],
    userRamks: [
      {
        username: 'pladj1',
        values: 3,
        content: '很好，价格又实惠，非常的满意',
        goods: '《灰色》高端 —博士',
        create_at: 1673562376826,
        size: 'L',
        pjid: '111'
      },
      {
        username: '13544521781',
        values: 5,
        content: '不错，很喜欢,很满意。物流很快。很愉快的一次购物！',
        goods: '《粉色》高端 —博士',
        create_at: 1673732306826,
        size: 'xL',
        pjid: '222'
      },
      {
        username: '323asdz',
        values: 4.5,
        content: '此用户没有填写评价。',
        goods: '《粉色》普通 —博士',
        create_at: 1673562376826,
        size: 'M',
        ipjidd: '333'
      },
      {
        username: 'gddwwwc',
        values: 3.5,
        content: '宝贝们的状态不错，我买了S, M, L, XL 尺码每个一套，有纸板帽和红色的披巾套。 谢谢卖家的服务！！！',
        goods: '《黄色》普通 —硕士',
        create_at: 1673760376826,
        size: 'L',
        pjid: '444'
      },
      {
        username: 'rfrejasjb',
        values: 4.5,
        content: '不错哦不错哦不错哦不错哦不错哦今天毕业 希望自己能一帆风顺',
        goods: '《绿色》普通 —博士',
        create_at: 1673762306826,
        size: 'XL',
        pjid: '555'
      },
      {
        username: '17683554515',
        values: 5,
        content: '大家完全放心购买。和学校借给你的几乎一模一样。十几块买下来可是好好拍毕业照，学校外面租还要百来块。简直不要太划算。质量完全不用担心。',
        goods: '《粉色》高端 —博士',
        create_at: 1673762316826,
        size: 'S',
        pjid: '666'
      }
    ],
    userfklist: [],
    CarouselList: [
      {
        order: 1,
        img: 'static/img/nav/1.png'
      },
      {
        order: 2,
        img: 'static/img/nav/2.png'
      },
      {
        order: 3,
        img: 'static/img/nav/3.png'
      },
      {
        order: 4,
        img: 'static/img/nav/4.png'
      }
    ]
  },
  getters,
  actions,
  mutations
});
